From: Jasper St. Pierre Date: Sun, 30 Dec 2012 16:25:28 +0000 (-0500) Subject: notificationDaemon: Fix style X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~5136 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=fbc629266f2152e9ba7eec9d33742e27a6342291;p=gnome-shell.git notificationDaemon: Fix style https://bugzilla.gnome.org/show_bug.cgi?id=680414 --- diff --git a/js/ui/notificationDaemon.js b/js/ui/notificationDaemon.js index ff421f6b5..ff6c25f06 100644 --- a/js/ui/notificationDaemon.js +++ b/js/ui/notificationDaemon.js @@ -139,9 +139,9 @@ const NotificationDaemon = new Lang.Class({ if (icon) { if (icon.substr(0, 7) == 'file://') return new Gio.FileIcon({ file: Gio.File.new_for_uri(icon) }); - else if (icon[0] == '/') { + else if (icon[0] == '/') return new Gio.FileIcon({ file: Gio.File.new_for_path(icon) }); - } else + else return new Gio.ThemedIcon({ name: icon }); } else if (hints['image-data']) { let [width, height, rowStride, hasAlpha,